//
//  UIController + Ext.swift
//  PageNavigator
//
//  Created by 张奇 on 2025/8/15.
//

import UIKit

extension UIViewController {

    func attachChildViewController(_ vc: UIViewController) {
        self.addChildViewController(vc)
        vc.didMove(toParentViewController: vc)
        vc.beginAppearanceTransition(true, animated: false)
        self.view.addSubview(vc.view)
        vc.endAppearanceTransition()
    }

}
